package com.pictures.mapper;

import com.pictures.pojo.Picture;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PictureMapper {

    //添加一张图片
    void addPicture(Picture picture);

    //删除图片
    int deletePicture(@Param("id") Long id);

    //根据content_id查找图片
    Picture getPicture(@Param("c_id") Long id);
}
